/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Core;

import java.awt.Dimension;
import java.awt.Toolkit;

/**
 *
 * @author bry
 */
public class FAForm extends javax.swing.JFrame {

    /**
     * Show form in center position of screen
     * @param bool 
     */
    public void setCenter(Boolean bool) {
        if(bool) {
            Toolkit toolkit = Toolkit.getDefaultToolkit();
            Dimension dim = toolkit.getScreenSize();
            this.setLocation((dim.width - this.getWidth()) / 2, (dim.height - this.getHeight())/2);
        }
    }
    
    /**
     * Disable the close button of form
     * @param bool 
     */
    public void setNoClose(Boolean bool) {
        if(bool) {
            
        }
    }
}
